package com.qf.java2102.qihaonan.hotel.dao;

import com.qf.java2102.qihaonan.hotel.pojo.User;

import java.sql.SQLException;

/**
 * @author qhn
 * @version 1.0
 */
public interface IUserDao {


    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    User findByUsername(String username) throws SQLException;


    User findById(Long userId) throws SQLException;

    int updateBalance(User user) throws SQLException;
}
